package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.ActualWeightDao;
import io.renren.modules.generator.entity.ActualWeightEntity;
import io.renren.modules.generator.service.ActualWeightService;



@Service("actualWeightService")
public class ActualWeightServiceImpl implements ActualWeightService {
	@Autowired
	private ActualWeightDao actualWeightDao;
	
	@Override
	public ActualWeightEntity queryObject(Integer flowId){
		return actualWeightDao.queryObject(flowId);
	}
	
	@Override
	public List<ActualWeightEntity> queryList(Map<String, Object> map){
		return actualWeightDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return actualWeightDao.queryTotal(map);
	}
	@Override
	public List<ActualWeightEntity> timeList(Map<String, Object> map){return actualWeightDao.timeList(map);}
	@Override
	public int timeTotal(Map<String, Object> map){
		return actualWeightDao.timeTotal(map);
	}
	@Override
	public void save(ActualWeightEntity actualWeight){
		actualWeightDao.save(actualWeight);
	}
	
	@Override
	public void update(ActualWeightEntity actualWeight){
		actualWeightDao.update(actualWeight);
	}
	
	@Override
	public void delete(Integer flowId){
		actualWeightDao.delete(flowId);
	}
	
	@Override
	public void deleteBatch(Integer[] flowIds){
		actualWeightDao.deleteBatch(flowIds);
	}
	
}
